import 'package:flutter/material.dart';

class DeviceSizeUtil {
  static double getScreenWidth(BuildContext context) {
    return MediaQuery.of(context).size.width;
  }

  static double getScreenHeight(BuildContext context) {
    return MediaQuery.of(context).size.height;
  }

  static DeviceSize getSize(BuildContext context) {
    double width = getScreenWidth(context);
    if (width < 600) {
      return DeviceSize.small;
    }
    if (width < 900) {
      return DeviceSize.medium;
    }
    return DeviceSize.large;
  }
}

enum DeviceSize { small, medium, large }
